import Mock from 'mockjs'

export default {
  list: () => {
    const data = Mock.mock({
      'ret': 0,
      'message': '成功',
      'data': {
        'rows|10': [
          {
            'id': '@word(32)',
            'amount': '@float(0.01, 10000000)',
            'avatar': 'https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fc-ssl.duitang.com%2Fuploads%2Fblog%2F202101%2F28%2F20210128075645_58931.thumb.1000_0.jpg&refer=http%3A%2F%2Fc-ssl.duitang.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1653126029&t=8cdddf36bff8bf3ebfbd715852c445db',
            'name': '@cname',
            'sex': '@integer(0, 1)',
            'birthDate': '@date(yyyy-MM-dd)',
            'email': '@email',
            'createtime': '@datetime',
            'remark': '@csentence',
            'state': '@integer(0, 1)',
          }
        ],
        'total': 50
      }
    })
    return data
  }
}
